package com.ddstation.crud.mapper;

import com.ddstation.crud.entity.DtInvsViolationManageEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtInvsViolationManageMapper {

    int insertReplace(DtInvsViolationManageEntity record);

    int insertByList(List<DtInvsViolationManageEntity> list);

    DtInvsViolationManageEntity selectByPrimaryKey(@Param("id") String id);

    List<String> selectTargetIds(DtInvsViolationManageEntity w);

    void updateStatus(DtInvsViolationManageEntity w);

    void insertMedicalViolation(List<DtInvsViolationManageEntity> violations);

    public int insertPrescriptionViolation(List<DtInvsViolationManageEntity> violations);

    public List<DtInvsViolationManageEntity> selectList(
            @Param("institutionId") String institutionId
            , @Param("medicalId") String medicalId
            , @Param("prescriptionId") Integer prescriptionId);
}